var active_li = GetQueryString('active_li');
        var active_span = GetQueryString('active_span');
        var vm = new Vue({
            el: '#app',
            data: {
                active_li: active_li ? active_li : 1,
                active_span: active_span ? active_span : 11,
                block: 'block',
                none: 'none',
            },
            methods: {
                handleLi: function (li, span) {
                    this.active_li = li;
                    this.active_span = span;
                },
                handleClick: function (li, span) {
                    this.active_li = li;
                    this.active_span = span;
                },
            },
        })
        function GetQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]); return null;
        }

        var params = {
            'apiKey': 'api_post_getAllNews',
            'deviceType': 'DIC_DEVICE_TYPE_1',
            contentType: "application/json;charset=utf-8",
            datatype: 'json'
        };
        var params1 = {
            'apiKey': 'api_post_getAllIndustryDynamics',
            'deviceType': 'DIC_DEVICE_TYPE_1',
            contentType: "application/json;charset=utf-8",
            datatype: 'json'
        };
        var params2 = {
            'apiKey': 'api_post_getAllLatestFuels',
            'deviceType': 'DIC_DEVICE_TYPE_1',
            contentType: "application/json;charset=utf-8",
            datatype: 'json'
        };
        var params3 = {
            'apiKey': 'api_post_getAllActivityDiscounts',
            'deviceType': 'DIC_DEVICE_TYPE_1',
            contentType: "application/json;charset=utf-8",
            datatype: 'json'
        };

        $(function () {
            //公司新闻
            ajax('post', '/d_easy/deasy/api', params, 'json', function (data) {
                var aa = data.newslist;
                for (var i = 0; i < aa.length; i++) {
                    var time = aa[i].update_time;
                    var bq = '<li class="news_list"><a href="NewsDetails.html?id=' + aa[i].id + '&keyname=api_post_getAllNews&active_li=1&active_span=11' + '"><ul class="short_line"><li class="news_date">' + time.substring(8, 10) + '</li><li class="news_year">' + time.substring(0, 7) + '</li></ul><ul class="con_right"><li class="news_tag">' + aa[i].title_name + '</li><li class="news_content">' + aa[i].content + '</li></ul></a></li>';
                    if (i == 0) {
                        $("#uls1").html(bq);
                    }
                    else {
                        $("#uls1").append(bq);
                    }
                }
                $(".news_content>p>span").removeAttr("style");
                $(".news_content>p>span").addClass("ct_span");
                $("#uls1").append('<script src = "js/pager.js" ><\/script >');
                change(1, "uls1", "page1");
            });
            //行业动态
            ajax('post', '/d_easy/deasy/api', params1, 'json', function (data) {
                var aa = data.industrylist;
                for (var i = 0; i < aa.length; i++) {
                    var time = aa[i].update_time;
                    var bq = '<li class="news_list"><a href="NewsDetails.html?id=' + aa[i].id + '&keyname=api_post_getAllIndustryDynamics&active_li=1&active_span=12' + '"><ul class="short_line"><li class="news_date">' + time.substring(8, 10) + '</li><li class="news_year">' + time.substring(0, 7) + '</li></ul><ul class="con_right"><li class="news_tag">' + aa[i].title_name + '</li><li class="news_content">' + aa[i].content + '</li></ul></a></li>';
                    if (i == 0) {
                        $("#uls2").html(bq);
                    }
                    else {
                        $("#uls2").append(bq);
                    }
                }
                $(".news_content>p>span").removeAttr("style");
                $(".news_content>p>span").addClass("ct_span");
                $("#uls2").append('<script src = "js/pager.js" ><\/script >');
                change2(1, "uls2", "page2");
            })
            //最新燃油
            ajax('post', '/d_easy/deasy/api', params2, 'json', function (data) {
                var aa = data.latestfuellist;
                for (var i = 0; i < aa.length; i++) {
                    var time = aa[i].update_time;
                    var bq = '<li class="news_list"><a href="NewsDetails.html?id=' + aa[i].id + '&keyname=api_post_getAllLatestFuels&active_li=1&active_span=13' + '"><ul class="short_line"><li class="news_date">' + time.substring(8, 10) + '</li><li class="news_year">' + time.substring(0, 7) + '</li></ul><ul class="con_right"><li class="news_tag">' + aa[i].title_name + '</li><li class="news_content">' + aa[i].content + '</li></ul></a></li>';
                    if (i == 0) {
                        $("#uls3").html(bq);
                    }
                    else {
                        $("#uls3").append(bq);
                    }
                }
                $(".news_content>p>span").removeAttr("style");
                $(".news_content>p>span").addClass("ct_span");
                $("#uls3").append('<script src = "js/pager.js" ><\/script >');
                change3(1, "uls3", "page3");
            })
            //活动优惠
            ajax('post', '/d_easy/deasy/api', params3, 'json', function (data) {
                var aa = data.discountlist;
                for (var i = 0; i < aa.length; i++) {
                    var time = aa[i].update_time;
                    var bq = '<li class="news_list"><a href="NewsDetails.html?id=' + aa[i].id + '&keyname=api_post_getAllActivityDiscounts&active_li=1&active_span=14' + '"><ul class="short_line"><li class="news_date">' + time.substring(8, 10) + '</li><li class="news_year">' + time.substring(0, 7) + '</li></ul><ul class="con_right"><li class="news_tag">' + aa[i].title_name + '</li><li class="news_content">' + aa[i].content + '</li></ul></a></li>';
                    if (i == 0) {
                        $("#uls4").html(bq);
                    }
                    else {
                        $("#uls4").append(bq);
                    }
                }
                $(".news_content>p>span").removeAttr("style");
                $(".news_content>p>span").addClass("ct_span");
                $("#uls2").append('<script src = "js/pager.js" ><\/script >');
                change4(1, "uls4", "page4");
            })
        })